//
//  ViewLoanViewController.h
//  Wallets Manager
//
//  Created by MAC on 10/28/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Loan.h"
#import "folyAppDelegate.h"
#import "DataBaseAccess.h"
#import "PayHistoryAlertView.h"

@interface ViewLoanViewController : UIViewController {
    NSMutableArray *historyArray;
    PayHistoryAlertView *payHistoryAlertView;
    IBOutlet UIButton *payButton;
}

@property (strong, nonatomic) Loan *currentLoan;
@property (strong, nonatomic) IBOutlet UITableView *historyTableView;
@property (weak, nonatomic) IBOutlet UILabel *loanNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *borrowerLabel;
@property (weak, nonatomic) IBOutlet UILabel *targetLabel;
@property (weak, nonatomic) IBOutlet UILabel *completedLabel;

- (IBAction)backButtonPressed:(id)sender;
- (IBAction)payButtonPressed:(id)sender;
@end
